FROM openjdk:11.0.10-jre
VOLUME /tmp
#修改镜像为东八区时间
ENV TZ Asia/Shanghai
ARG JAR_FILE
COPY ${JAR_FILE} /usr/src/app.jar
WORKDIR /usr/src
CMD ["java","-jar","app.jar"]
EXPOSE 8080